﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.DisplayInfo
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System;
using System.Runtime.CompilerServices;
using UnityEngine.Bindings;
using UnityEngine.Scripting;

#nullable disable
namespace UnityEngine
{
  /// <summary>
  ///   <para>Represents a connected display.</para>
  /// </summary>
  [NativeType("Runtime/Graphics/DisplayInfo.h")]
  [UsedByNativeCode]
  public struct DisplayInfo : IEquatable<DisplayInfo>
  {
    [RequiredMember]
    internal ulong handle;
    /// <summary>
    ///   <para>The display width in pixels.</para>
    /// </summary>
    [RequiredMember]
    public int width;
    /// <summary>
    ///   <para>The display height in pixels.</para>
    /// </summary>
    [RequiredMember]
    public int height;
    /// <summary>
    ///   <para>The current refresh rate of the display.</para>
    /// </summary>
    [RequiredMember]
    public RefreshRate refreshRate;
    /// <summary>
    ///   <para>Specifies the work area rectangle of the display relative to the top left corner. For example, it excludes the area covered by the macOS Dock or the Windows Taskbar.</para>
    /// </summary>
    [RequiredMember]
    public RectInt workArea;
    /// <summary>
    ///   <para>Human-friendly display name.</para>
    /// </summary>
    [RequiredMember]
    public string name;

    [MethodImpl((MethodImplOptions) 256)]
    public bool Equals(DisplayInfo other)
    {
      return (long) this.handle == (long) other.handle && this.width == other.width && this.height == other.height && this.refreshRate.Equals(other.refreshRate) && this.workArea.Equals(other.workArea) && this.name == other.name;
    }
  }
}
